module MC {
	export module Cache {
		/*public constructor() {
			localStorage.getItem
		}*/
		let qianzhui='MC_';
		export function getObj(key:string){
			let str=localStorage.getItem(qianzhui+key);
			return JSON.parse(str);
		}
		export function setObj(key:string,val={}){
			return localStorage.setItem(qianzhui+key,JSON.stringify(val));
		}

		export function getStr(key:string){
			let str=localStorage.getItem(qianzhui+key);
			return str;
		}
		export function setStr(key:string,val=''){
			return localStorage.setItem(qianzhui+key,val);
		}
	}
}